package factory_method_pattern.v1;

/**
 * 运算器类
 * @author ricejson
 */
public abstract class Operation {
    protected double numA;
    protected double numB;

    /**
     * 获取运算结果
     * @return 返回结果值
     */
    public abstract double getResult();

    public double getNumA() {
        return numA;
    }

    public void setNumA(double numA) {
        this.numA = numA;
    }

    public double getNumB() {
        return numB;
    }

    public void setNumB(double numB) {
        this.numB = numB;
    }
}
